package io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * 缓冲字符输出流：java.io.PrintWriter
 * 特点:
 *     1:按行写出字符串
 *     2:具有自动的行刷新功能
 */
public class PWDemo {
    public static void main(String[] args) throws IOException {

        PrintWriter pw = new PrintWriter("pw.txt","UTF-8");
        pw.println("我祈祷拥有一颗透明的星星，和会流泪的眼睛");
        pw.println("给我再去相信的勇气，oh越过过黄山去拥抱你");
        System.out.println("写出完毕！！！");
        pw.close();


    }
}
